package com.itheima.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * <p>
 * 友情链接表
 * </p>
 *
 * @author wangchang
 * @since 2020-08-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(name = "t_link")
@ApiModel(value="Link对象", description="友情链接表")
public class Link implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "唯一uid")
    @Id
    private String uid;

    @ApiModelProperty(value = "友情链接标题")
    private String title;

    @ApiModelProperty(value = "友情链接介绍")
    private String summary;

    @ApiModelProperty(value = "友情链接URL")
    private String url;

    @ApiModelProperty(value = "点击数")
    private Integer clickCount;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "状态")
    private Boolean status;

    @ApiModelProperty(value = "排序字段，越大越靠前")
    private Integer sort;

    @ApiModelProperty(value = "友链状态： 0 申请中， 1：已上线，  2：已下架")
    private Boolean linkStatus;

    @ApiModelProperty(value = "申请用户UID")
    private String userUid;

    @ApiModelProperty(value = "操作管理员UID")
    private String adminUid;


}
